import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

ApplicationWindow {
    id: window
    visible: true
    width: 600
    height: 600
    title: "SystemPalette 示例"
    
    SystemPalette {
        id: systemPalette
        colorGroup: SystemPalette.Active
    }
    
    ColumnLayout {
        anchors.fill: parent
        spacing: 0
        
        SwipeView {
            id: swipeView
            Layout.fillWidth: true
            Layout.fillHeight: true
            clip: true
            
            BasicColors {}
            ButtonColors {}
            HighlightColors {}
            ShadeColors {}
            ColorGroupsExample {}
        }
        
        PageIndicator {
            id: indicator
            Layout.alignment: Qt.AlignHCenter
            count: swipeView.count
            currentIndex: swipeView.currentIndex
            spacing: 8
            padding: 15
        }
    }
}
